<?php
$title = 'Add new Category';
$this->headTitle($title);
$form = $this->form;
$form->setAttribute('action',$this->url('category', array('action' => 'add')));
$form->prepare();
echo $this->form()->openTag($form);
?>
<fieldset>
	
	<div class="control-group">
		<?php echo $this->formLabel($form->get('title'));?>
		<div class="controls">
		<?php echo $this->formInput($form->get('title'));?>
		</div>
	</div>
	
	<div class="control-group">
		<?php echo $this->formLabel($form->get('parent_id'));?>
		<div class="controls">
		<?php echo $this->formSelect($form->get('parent_id'));?>
		</div>
	</div>
	<div class="control-group">
		<div class="controls">
		<?php echo $this->formSubmit($form->get('submit'));?>
		</div>
	</div>
<?php 
echo $this->formHidden($form->get('id'));
?>
</fieldset>
<?php 
echo $this->form()->closeTag();
?>
